import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class TestCard {

    public  List<List<Integer>> generate(int numRows){
        List<List<Integer>> ret=new ArrayList<>();

        List<Integer>list=new ArrayList<>();
        list.add(1);
        ret.add(list);
        for (int i=1;i<numRows;i++){
            List<Integer> curRow=new ArrayList<>();
            //第一个
            curRow.add(1);
            //中间的
            for (int j = 1; j < i; j++) {
                List<Integer> preRow=ret.get(i-1);
                int x1=
            }
            //当前行最后一个1
            curRow.add(1);
        }
    }

    public static void main(String[] args) {
        ArrayList<Integer> list=new ArrayList<>();
        list.add(10);
        list.add(5);
        list.add(3);
        list.add(2);
    }
    public static void main1(String[] args) {
        Cards cards=new Cards();
        List<Card> cardList=cards.buyCard();

        cards.shuffle(cardList);

        System.out.println("洗牌之后：");
        System.out.println(cardList);

        System.out.println("抓牌：");
        cards.drawCard(cardList);

        System.out.println("剩下的牌：");
        System.out.println(cardList);
    }
}
